<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JQ背景动画</title>
    <style>
        .box{
            width: 300px;
            height: 300px;
            background-color: red;
        }
    </style>

    <script src="../libs/jquery3_1_1.min.js"></script>
    <script src="https://cdn.bootcss.com/jquery-color/2.1.2/jquery.color.js"></script>
    <script>
        $(function () {
            $(".box").animate({
                backgroundColor:'#333333'
            },2000);
        })
    </script>
</head>
<body>
<div class="box"></div>
</body>
</html>